<?php
include(dirname(__FILE__).'/top-bottom-share-data.php');
//hot goods
$dt = new DataTable(constant('DB_TABLE_HOT_GOOD_AD'));
$GLOBALS['PAGE_DATA_HOT_GOODS'] = $dt->get_list('',array('order','id'));

//media activiey
$dt = new DataTable(constant('DB_TABLE_ARTICLE'));
$condition = "`cat_id`=2 AND `is_delete`='N'";
$GLOBALS['PAGE_DATA_NEWS_MEDIA_ACTIVITY'] = $dt->get_list($condition, array('-date','-id'), 5, 0);
//famous article
$condition = "`cat_id`=1 AND `is_delete`='N'";
$data_list = $dt->get_list($condition, array('-date','-id'), 1, 0);
$GLOBALS['PAGE_DATA_FAMOUS'] = FALSE;
if ( count($data_list) > 0 ) {
	$GLOBALS['PAGE_DATA_FAMOUS'] = $data_list[0];
}
//famous list
$condition = "`cat_id`=1 AND `is_delete`='N'";
$GLOBALS['PAGE_DATA_FAMOUS_LIST']  = $dt->get_list($condition, array('-date','-id'), 6, 1);
//index working
$dt = new DataTable(constant('DB_TABLE_INDEX_WORK_AD'));
$GLOBALS['PAGE_DATA_INDEX_WORKING'] = $dt->get_list('','order', 4);
?>